TGML Rotation

<Rotate> rotates the coordinate system for the immediate parent element about a specified point.

Attribute Type Description

Angle

Double

The angle of the rotation, measured in degrees.
A positive value implies clockwise rotation. A negative value implies counter-clockwise rotation.
Default: "0.0"
Inheritable: No
Animatable: Yes

Center

Point

Describes the position of the center point ("X,Y") of the rotation.
"0.0 , 0.0" represents the upper left corner of the element and "1.0 , 1.0" represents the lower right corner. See Remarks.
Default: "0.5 , 0.5"
Inheritable: No
Animatable: Yes

Different Center values:

Example:

Copy
<TGML>
    <Polygon Points="50.0,50.0 150.0,50.0 150.0,150.0 50.0,150.0 Stroke="#000000" Fill="None"/>

    <Polygon Points="50.0,50.0 150.0,50.0 150.0,150.0 50.0,150.0 Stroke="#0000FF" Fill="#FFFF00" 0pacity="0.75">
        <Rotate Angle="20" Center="0.5,0.5"/>
    </Polygon>
</TGML>

Example on screen: